package controller

import (
	"gitee.com/JackieCode/fabric-go-api/common"
	"github.com/gin-gonic/gin"
)

func ConfigUserRouter(g *gin.RouterGroup) {
	g.POST("/enroll", httpEnroll)
}

func httpEnroll(c *gin.Context) {
	var req struct {
		Name     string
		Password string
		Org      string
	}
	if err := c.BindJSON(&req); err != nil {
		c.JSON(500, common.ErrReply(err))
		return
	}
}
